package com.china.produce.service.risk;

import org.springframework.beans.factory.InitializingBean;
import java.util.HashMap;
import java.util.Map;

/**
 * @ClassName
 * @Author niujie
 * @Version
 * @Description
 * @CreateTime 2023/7/23
 */
public abstract class OpsAbstractRisk implements OpsRiskService, InitializingBean {

    public static Map<String, OpsRiskService> maps = new HashMap<>();

    public abstract void a();

    public String common() {

        return this.getTopic() + "common";
    }


    public void afterPropertiesSet() throws Exception {

        maps.put(getTopic(), this);
    }
}
